<?php
// @formatter:off
/**
 * @file c.resetuser.php
 * @author Alejandro Dario Simi
 * @date $Date: 2013-07-05 14:30:06 +0000 (Fri, 05 Jul 2013) $
 *
 * $Id: c.resetuser.php 89 2013-07-05 14:30:06Z daemonraco@gmail.com $
 * $URL: http://wcomix.googlecode.com/svn/tags/wcomix-1.0.0.1/themes/default/controlers/contents/c.resetuser.php $
 */
// @formatter:on

if($wcProfile->allowedTo(WC_PERM_USER_RESET)) {
	if(!$wcSession->isLogged()) {
		$wcThemeAssigns["PATH"] = "User Access Request";
		$wcThemeAssigns["ACTIONCONTENT"] = "/contents/c.resetuser.html";

		startCaptcha();
	} else {
		$wcThemeAssigns["error-string"] = "A user is already logged in";
		require "{$this->_themeRoot}/controlers/contents/c.500.php";
	}
} else {
	$wcThemeAssigns["error-string"] = "You're not allowed to reset a user";
	require "{$this->_themeRoot}/controlers/contents/c.403.php";
}
?>